package xdu.lz.stage4_atomic.chapter2_caslock;

public interface Lock {

    void lock();

    void tryLock() throws GetLockException;

    void tryLock(long mills) throws TimeOutException;

    void unlock();
}
